package com.rbs.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
//购物车对象
public class Cart {
    private Map<Integer,CartItem> buyMap = new HashMap<>();//购物车里面的商品集合id 和商品项对象
    private Map<Integer,CartItem> removeMap = new HashMap<>();//购物车里所删除的商品
    private Double totalMoney;//总价
    private Double saveMoney;//节省的价格
}
